﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxSDK.Model
{
    [WxPetaPoco.TableName("wx_menu")]
    [WxPetaPoco.PrimaryKey("Id")]
    public class wx_menu
    {
        #region Model
        private int _id;
        private int _memberid;
        private string _menutitle;
        private int _parentid;
        private string _menutype;
        private string _menuurl;
        private string _menukey;
        private int _islock = 0;
        private int _sortid = 0;
        /// <summary>
        /// 微信菜单
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int MemberId
        {
            set { _memberid = value; }
            get { return _memberid; }
        }
        /// <summary>
        /// 菜单标题
        /// </summary>
        public string MenuTitle
        {
            set { _menutitle = value; }
            get { return _menutitle; }
        }
        /// <summary>
        /// 上级ID
        /// </summary>
        public int ParentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }

        /// <summary>
        /// 菜单事件类型
        /// </summary>
        public string MenuType {
            set { _menutype = value; }
            get { return _menutype; }
        }

        /// <summary>
        /// 菜单 菜单 点击跳转的URL
        /// </summary>
        public string MenuUrl
        {
            set { _menuurl = value; }
            get { return _menuurl; }
        }
        /// <summary>
        /// 菜单 推送事件
        /// </summary>
        public string MenuKey
        {
            set { _menukey = value; }
            get { return _menukey; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int IsLock
        {
            set { _islock = value; }
            get { return _islock; }
        }

        /// <summary>
        /// 排序ID
        /// </summary>
        public int SortId
        {
            set { _sortid = value; }
            get { return _sortid; }
        }
        #endregion Model
        /// <summary>
        /// 是否子菜单  通过ParentId 判断
        /// </summary>
        public bool IsSub = false;
        /// <summary>
        /// 子菜单集合
        /// </summary>
        public IList<wx_menu> Sub_button = new List<wx_menu>();

    }

}
